#include <QApplication>
#include <QStringList>
#include <QTreeView>

#include "treemodel.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QStringList headers;
    headers << "Title" << "Description";

    TreeModel *model = new TreeModel(headers);

    QTreeView view;
    view.setModel(model);
    for (int column = 0; column < model->columnCount(); ++column)
        view.resizeColumnToContents(column);

    view.show();

    return a.exec();
}
